package com.StarStudio.Service.Impl;

import com.StarStudio.Domain.Expert;
import com.StarStudio.Mapper.ExpertMapper;
import com.StarStudio.Service.ExpertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExpertServiceImpl implements ExpertService {

    @Autowired
    ExpertMapper expertMapper;

    @Override
    public List<Expert> findAll() {
        return expertMapper.findAll();
    }

    @Override
    public Expert findById(int id) {
        return expertMapper.findById(id);
    }
}
